package com.scalar.chiptrack.operations.dataentry.lotsplit.forms;

import com.scalar.chiptrack.operations.dataentry.LotDetails;
import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.utils.AutoGrowingArrayList;

import java.util.ArrayList;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;


/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Oct 06, 2006
 * Time: 12:28:08 AM
 */
public class LotSplitForm extends ChipTrackActionForm
{
    private String processType      = null;
    private String processStepId    = null;
    private String locationId       = null;
    private String lotId            = null;
    private String fabLotNo         = null;
    private String baseprocessType  = null;

    private LotDetails splitLotDetails;

    ArrayList allwipLotsList = new AutoGrowingArrayList(LotDetails.class);

    public String getLotId() {
        return lotId;
    }                                                  

    public void setLotId(String lotId) {
        this.lotId = lotId;
    }

    public String getProcessStepId() {
        return processStepId;
    }

    public void setProcessStepId(String processStepId) {
        this.processStepId = processStepId;
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public LotDetails getSplitLotDetails() {
        return splitLotDetails;
    }

    public void setSplitLotDetails(LotDetails splitLotDetails) {
        this.splitLotDetails = splitLotDetails;
    }


    public String getProcessType() {
        return processType;
    }

    public void setProcessType(String processType) {
        this.processType = processType;
    }

    public String getFabLotNo() {
        return fabLotNo;
    }

    public void setFabLotNo(String fabLotNo) {
        this.fabLotNo = fabLotNo;
    }

    public String getBaseprocessType() {
        return baseprocessType;
    }

    public void setBaseprocessType(String baseprocessType) {
        this.baseprocessType = baseprocessType;
    }

    public ArrayList getAllwipLotsList() {
        return allwipLotsList;
    }

    public void setAllwipLotsList(ArrayList allwipLotsList) {
        this.allwipLotsList = allwipLotsList;
    }

    public void reset( ActionMapping mapping, HttpServletRequest request )
	{
        if ( allwipLotsList != null )
        {
            int listSize = allwipLotsList.size();
            for (int i = 0; i < listSize; i++)
            {
                LotDetails lotDetails = (LotDetails) allwipLotsList.get(i);
                lotDetails.setChecked( false );
            }
        }
    }
}
